< previous page page_598 next page >

Page 598
note.gif To ensure that all readers can use the information presented here, the Access ODBC driver is used in all examples. Although this is a PC database, the methods used can also be applied to server databases. It is important to remember that connecting to an Access .MDB file via ODBC is different than connecting directly through the Jet engine. square.gif

Gaining Access to ODBC Drivers
To set up the ODBC Data Sources on your system, you need to use the Windows ODBC Data Source Administrator. You will find this in the Control Panel, which is accessible by choosing the Control Panel item from the Settings submenu on the Start menu. The Control Panel is illustrated in Figure 27.1.
0598-01.jpg
Figure 27.1
The ODBC Data Source Administrator is accessed by
selecting the 32bit ODBC icon on the Control Panel.
d6ef40187df115e88326dbc94f09ab9a.gif d6ef40187df115e88326dbc94f09ab9a.gif
The ODBC Administrator Dialog Box
d6ef40187df115e88326dbc94f09ab9a.gif d6ef40187df115e88326dbc94f09ab9a.gif
If you see different dialog boxes than the ones pictured here when you click the 32-bit ODBC icon, don't panic. As with any product, Microsoft has produced several versions of ODBC. ODBC is included with many of its products, including Office and Visual Basic. Depending on the installation options you chose, you may or may not have the latest version. Older versions of ODBC do not have the tabbed dialog box style. Fortunately, ODBC is included with VB so you can install it during setup.
When you open the ODBC Manager, you see the ODBC Data Source Administrator dialog box, as shown in Figure 27.2. The Data Source administrator includes several tabs used to add data sources as well as new ODBC drivers.
As you might notice, the titles of the first three tabs in the dialog box end in the letters DSN. DSN is an abbreviation for Data Source Name. The DSN is the key that your program uses to identify an ODBC Data Source. ODBC takes care of mapping the DSN to the actual driver, server, and database file.

 
< previous page page_598 next page >